<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width:800px;
            height:800px;
            border:10px solid rgba(255,0,0,0.3);
            padding:10px;
            border-image-source:url(./2.jpg);
            border-image-slice:27;/*默认单位px*/
            border-image-repeat:round;
            background-image:url(./11.jpg);
            /* background-repeat:space;   默认重复 ，no-repeat 不重复，repeat-x：x轴重复，repeat-y：y轴重复,space:均匀分割 */
            /* background-repeat: round; round:将图片压缩或者拉伸，适应整个背景*/
            /* background-clip:content-box;  背景的覆盖范围*/
            /* background-origin:padding-box;  背景图片的起始覆盖点
            background-origin:no-repeat;
            background-position:50px 50px; 背景图像的初始位置，相对background-origin定义位置 */
            /* background-attachment:local;  背景固定
            overflow:scroll; */
            background-size:contain;/*设置背景大小*/
        }
    </style>
</head>
<body>
    <div>hello
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
        <br>
    </div>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
</body>
</html>